package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.List;

/**
 * Created by rize on 2019/7/2.
 */
@Data
@TableName("unimall_sku")
public class SkuDO extends SuperDO {

    @TableField("spu_id")
    private Long spuId;

    @TableField("bar_code")
    private String barCode;

    /**
     * SKU显示文字
     */
    private String title;

    /**
     * spu_sku名称集合 方便做查询使用
     */
    private String spuskutitle;

    /**
     * 商品类目id  同spu的类型id 方便检索使用
     */
    @TableField("category_id")
    private Long categoryId;


    private String img;

    @TableField("original_price")
    private Integer originalPrice;

    private Integer price;

    @TableField("vip_price")
    private Integer vipPrice;

    private Float stock;

    @TableField("freeze_stock")
    private Float freezeStock;

/*
    @TableField(exist = false)
    private List<SkuColonelDO> colonelDOList;
*/

    // 1代表按件产品 2代表称重产品
    @TableField("price_mode")
    private Integer priceMode;



    @TableField("unit")
    private String unit;



}
